package sn.ugb.po.ejb.sessions.facades.etudiant.impl;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import sn.ugb.po.ejb.sessions.facades.etudiant.impl.Personne;


@Entity
@Table(name = "Personne")
@Inheritance (strategy=InheritanceType.SINGLE_TABLE)

public class Personne {
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	
	public Integer getId() {
		return id;
	}

	
	public Personne() {
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	
	@Column(name = "PRENOM")
	private String prenom;

	@Column(name = "NOM")
	private String nom;

	@Column(name = "Email")
	private String Email;
	@Column(name = "Telephone")
	private String Tel;

	

	
	public String getPrenom() {
		return prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getEmail() {
		return Email;
	}

	public void setEmail(String DateNaiss) {
		this.Email = DateNaiss;
	}
	public String getTel() {
		return Tel;
	}

	public void setTel(String Tel) {
		this.Tel = Tel;
	}

	



	public String toString() {
		StringBuffer buffer = new StringBuffer(Personne.class.getSimpleName());
		buffer.append(" [");
		buffer.append(" firstname : " + prenom);
		buffer.append(", lastname : " + nom);
		buffer.append(", Email  : " + Email);
		buffer.append(", Telephone : " + Tel);
		buffer.append("]");
		return buffer.toString();
	}
}
